//
//  LoginView.m
//  DoubanDemo1
//
//  Created by lanou3g on 15/11/21.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "LoginView.h"

@implementation LoginView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self allViews];
    }
    return self;
}

- (void)allViews
{
    self.userNameLTView = [[LTView alloc]initWithFrame:CGRectMake(40, 120, 295, 50)];
    [self addSubview:self.userNameLTView];
    
    
    self.passWordLTView = [[LTView alloc]initWithFrame:CGRectMake(40, 200, 295, 50)];
    self.passWordLTView.label.text = @"密码";
    self.passWordLTView.textField.placeholder = @"请输入密码";
    self.passWordLTView.textField.secureTextEntry = YES;
    [self addSubview:self.passWordLTView];
    
    self.loginBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    self.loginBtn.frame = CGRectMake(40, 290, 120, 50);
    self.loginBtn.backgroundColor = [UIColor cyanColor];
    [self.loginBtn setTitle:@"登陆" forState:UIControlStateNormal];
    [self addSubview:self.loginBtn];
    
    self.registerBtn = [UIButton buttonWithType:UIButtonTypeSystem];
    self.registerBtn.frame = CGRectMake(215, 290, 120, 50);
    self.registerBtn.backgroundColor = [UIColor cyanColor];
    [self.registerBtn setTitle:@"注册" forState:UIControlStateNormal];
    [self addSubview:self.registerBtn];
}




@end
